#!/usr/bin/env bash

DIR=$(realpath $0) && DIR=${DIR%/*}
cd $DIR
set -ex

if [ ! -d "data" ]; then
  docker-compose pull
  # bash -c "sleep 1 && cd .. && source conf/env.sh && srv/init.js" &
fi

exec docker-compose up
